home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 5_11.lha / 5_11 / 5_11e.c < prev    next >
Text File  |  1993-08-08  |  388b  |  16 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / included within treeval()        DELETE
  6. ase ASSIGN:
  7.    int val = treeval(head->left, variables);
  8.    variables->look(head->cvalue)->lvalue = val;
  9.    return val;
  10.  
  11. ase NAME:
  12.    return variables->look(head->cvalue)->lvalue;
  13.  
  14. ase SEMICOLON:
  15.    return 0;
  16.